home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
DHA demo
/
Don Norman Folder
/
The Library
/
The Library.rsrc
/
CSTR_22323_restoreStateCSTR
< prev
next >
Wrap
Text File
|
1994-09-21
|
3KB
|
104 lines
answer tStr("LibMsg",25) with tStr("LibMsg",23) or tStr("LibMsg",11)
if it = tStr("LibMsg",23) then
answer file tStr("LibMsg",26)
if it ¡ "" then
put it into fN
put fN & ".i" into iName
answer tStr("LibMsg",27) with tStr("LibMsg",23) or tStr("LibMsg",11)
if it = tStr("LibMsg",23) then
put the short id of this cd into orig
LS
LM true
set cantabort of this stack to true
BuildIndex fN, iName
put the number of cds in bg "details" into numCds
go first cd of bg "details"
put the number of fld "local notes" into lnN
put the number of fld "styled" into sN
UDVars
--the name of the stack
get GetFileIndexedEntry(1, fN, iName)
if it = the short name of this stack then
--here are the paper clips
get GetFileIndexedEntry(2, fN, iName)
repeat with x = 70 to 73
put line (x - 69) of it into t
set the name of bg btn id x to item 1 of t
set the loc of bg btn id x to (item 2 to 3 of t)
end repeat
--here are the blacked cards.
put GetFileIndexedEntry(3, fN, iName) into fld "blacked cards"
--here are the marked cards
put GetFileIndexedEntry(4, fN, iName) into fld "marked cards"
--here is the bookmark
put GetFileIndexedEntry(5, fN, iName) into t
set the script of cd btn "bookmark" of cd 2 to t
put 5 into fR
put checked(tStr("LibMsg",45)) into wasLarge
repeat with x = 1 to numCds
if mouseClick() then exit repeat
put false into oldFile
cbusy
doGauge
get x + fR
put GetFileIndexedEntry(it, fN, iName) into cdNo
if (cdNo = the number of this cd) then
--new 9/11/92
put GetFileIndexedEntry(it + 1, fN, iName) into theSize
put line 1 of fld "characters" into currSize
if theSize = "s■■ª" then
if currSize = "l" then
domenu tStr("LibMsg",45)
repeat until not checked(tStr("LibMsg",45))
domenu tStr("LibMsg",45)
end repeat
end if
else if theSize = "l■■ª" then
if currSize = "s" then
domenu tStr("LibMsg",45)
repeat until checked(tStr("LibMsg",45))
domenu tStr("LibMsg",45)
end repeat
end if
else
put true into oldFile
end if
--end new 9/11/92
if oldFile = false then
put GetFileIndexedEntry(it + 2, fN, iName) into fld lnN
ApplyFileIndxEntryToTE (it + 3), fN, "b", lnN, iName
ApplyFileIndxEntryToTE (it + 4), fN, "b", sN, iName
put GetFileIndexedEntry((it + 5), fN, iName) into fld "verticals"
add 5 to fR
else
put GetFileIndexedEntry(it + 1, fN, iName) into fld lnN
ApplyFileIndxEntryToTE (it + 2), fN, "b", lnN, iName
ApplyFileIndxEntryToTE (it + 3), fN, "b", sN, iName
put GetFileIndexedEntry((it + 4), fN, iName) into fld "verticals"
add 4 to fR
end if
else
exit repeat
end if
go next cd in this bg
end repeat
LM false
DeleteFile iName
set cantabort of this stack to false
go cd id orig
if wasLarge ¡ checked(tStr("LibMsg",45)) then
domenu "large print"
end if
send opencard to this cd
UDClips
US
vis "window gauge",(checked(tStr("LibMsg",43)) and CDs())
end if
end if
end if
end if